const Home = () => import('@/pages/Home')
const Search = () => import('@/pages/Search')
const Register = () => import('@/pages/Register')
const Detail = () => import('@/pages/Detail')
const ShopCart = () => import('@/pages/ShopCart')
const Pay = () => import('@/pages/Pay')
const Login = () => import('@/pages/Login')
const Trade=()=>import('@/pages/Trade')


export default [{
    path: '/home',
    component: Home,
    meta:{
        homes:true,
        headerIsShow:true
    }
},

{   name:'search',
    path: '/search/:keyword?',
    component: Search,
    meta:{
        headerIsShow:true
    }
},
{
    path: '/register',
    component: Register
},
{
    path: '/detail/:skuId?',
    component: Detail,
    meta:{
        headerIsShow:true
    }
},
{
    path: '/shopcart',
    component: ShopCart,
    meta:{
        linsz:true
    }
},
{
    path: '/pay',
    component: Pay
},
{
    path: '/login',
    component: Login
},
{
    path:'/trade',
    component:Trade
},
{
    path:'/',
    redirect:'/home'
}
]
